package com.lanzchina.lanclass.repository;

import com.lanzchina.lanclass.domain.School;
import com.lanzchina.lanclass.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {

    User findByOpenId(String openId);

    User findBySchoolAndUserAccount(School school, String userAccount);
}
